harvestAccountBalances

Harvest current / future balances for various accounts. The balance(s) will be stored in the account's currency.

Performance considerations: This method does not scan transactions and simply processes each account once to retrieve it's balance. Performance: O(A), where A = number of accounts - very fast and suitable for near real-time use.

Since

MD2027

Return

Returns an AccountBalancesByAsOfDates object holding accounts and their respective current / future balances in the account's currency.

Parameters

book

The account book.

accounts

An optional list of accounts to obtain the balance(s) for (or use accountFilter).

accountFilter

An optional filter to find the accounts to obtain the balance(s) for (or use accounts).

balanceType

The balance type to harvest.